package com.hdoit.kylin.logical.viewmodel.document;

import java.util.Date;

import org.springframework.web.bind.annotation.InitBinder;

import com.tennetcn.common.message.SearchItem;
import com.tennetcn.common.message.SearchModel;
import com.tennetcn.common.utils.DateUtils;

public class WeekLogSearch extends SearchModel {
	
	private String createUserId;
	
	private Date startDate;
	
	private Date endDate;
	
	private String name;


	public String getEmployeeId() {
		return createUserId;
	}

	public void setEmployeeId(String employeeId) {
		this.createUserId = employeeId;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public WeekLogSearch() {
		setStartDate(DateUtils.getCurrent());
		initSearchModel();
	}
	
	private void initSearchModel(){
		addSearchItem(new SearchItem("createUserName","姓名",true));
		
	}

}
